<template>
  <div>
    <div class="swiper-search">
      <!-- 搜索盒子 -->
      <div class="search-box">
        <div class="search-location">
          <!-- 地名 -->
          <div class="search-adress" @click="$router.push('/citylist')">
            广州
            <i class="iconfont icon-xiajiantou"></i>
          </div>
        </div>
        <div class="search-chaxun">
          <van-icon name="search" class="search-icon" />
          <span class="search-chaxun-adress">请输入小区或地址</span>
        </div>
        <div class="search-map">
          <i class="iconfont icon-map"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'homepagesearch-page',
  components: {},
  props: {},
  data () {
    return {}
  },
  computed: {},
  watch: {},
  created () {},
  methods: {}
}
</script>

<style scoped lang="less">
.swiper-search {
  padding: 2px 2px 2px 2px;
  .search-box {
    position: absolute;
    top: 23px;
    margin-left: 21px;
    width: 82%;
    height: 38px;
    background-color: #fff;
    border-radius: 3px;
    padding: 10px 0px 6px 9px;
    box-sizing: border-box;
    display: flex;
  }
  .search-map {
    position: absolute;
    top: 10%;
    left: 102%;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    text-align: center;
    ::v-deep .iconfont {
      font-size: 20px;
      color: #fff;
    }
  }
  .search-chaxun {
    color: #9d9fa1;
    margin-left: 8px;

    .search-chaxun-adress {
      font-size: 14px;
    }
    ::v-deep .search-icon {
      font-size: 17px;
      margin-right: 7px;
    }
  }
  .search-location {
    display: flex;
    .iconfont,
    .icon-xiajiantou {
      font-size: 12px;
      color: #7f7f80;
    }
    .search-adress {
      font-size: 15px;
      width: 55px;
      border-right: 1px solid #e5e5e5;
      //
    }
  }
}
</style>
